package cn.starrysky108.simpleerp.core.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * @author Carl Lee
 */
@Slf4j
@Aspect
public class Service {
    @Pointcut("execution(public * cn.starrysky108.simpleerp..*Service.*(..))")
    public void test() {
    }

    @Before("test()")
    public void beforeAdvice() {
        System.out.println("beforeService调用...");
    }
}
